package com.wuzheng.job;

import com.wuzheng.elasticjob.annotation.EnableElasticJob;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * ElasticJob Spring Boot集成案例
 * 
 * @author hfl
 * 
 * @about http://cxytiandi.com/about
 *
 */
@SpringBootApplication
@EnableElasticJob
//开启动态任务添加API
@ComponentScan(basePackages = {"com.wuzheng"})
public class JobApplication {

	public static void main(String[] args) {
//		new SpringApplicationBuilder().sources(JobApplication.class).web(true).run(args);
//		try {
//			new CountDownLatch(1).await();
//		} catch (InterruptedException e) {
//		}
		SpringApplication.run(JobApplication.class, args);

	}
	
}
